//
//  Christmas_boxAppDelegate.m
//  Christmas box
//
//  Created by GL on 08-11-23.
//  Copyright __MyCompanyName__ 2008. All rights reserved.
//

#import "Christmas_boxAppDelegate.h"

@implementation Christmas_boxAppDelegate

@synthesize window;
@synthesize currentview;


- (void)applicationDidFinishLaunching:(UIApplication *)application 
{    

    // Override point for customization after application launch
	//初始化当前窗口
	currentview = [[UIViewController alloc]init];
	CGRect rect = [[UIScreen mainScreen]bounds];
	currentview.view.frame = rect;
	[window addSubview:currentview.view];
	
	startview = [[mainview alloc]initWithFrame:rect];
	currentview.view = startview;
	[application setStatusBarHidden:YES];
    [window makeKeyAndVisible];
}


- (void)dealloc 
{
	[startview release];
	[currentview release];
    [window release];
    [super dealloc];
}


@end
